package com.bjdd.jdy.entity.result;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/5/3.
 */

public class TodayDataResult {

    /**
     * income : 0
     * workTime : 0
     */

    private String income;
    private int workTime;

    public static TodayDataResult objectFromData(String str) {

        return new Gson().fromJson(str, TodayDataResult.class);
    }

    public static List<TodayDataResult> arrayTodayDataResultFromData(String str) {

        Type listType = new TypeToken<ArrayList<TodayDataResult>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public String getIncome() {
        return income;
    }

    public void setIncome(String income) {
        this.income = income;
    }

    public int getWorkTime() {
        return workTime;
    }

    public void setWorkTime(int workTime) {
        this.workTime = workTime;
    }
}
